<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Macro BOOST_LOG_TRIVIAL</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Log v2">
<link rel="up" href="log/reference.html#header.boost.log.trivial_hpp" title="Header &lt;boost/log/trivial.hpp&gt;">
<link rel="prev" href="boost/log/trivial/operator_idm45961923598352.html" title="Function template operator&gt;&gt;">
<link rel="next" href="core_components.html" title="Core components">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="boost/log/trivial/operator_idm45961923598352.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="log/reference.html#header.boost.log.trivial_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="core_components.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_LOG_TRIVIAL"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Macro BOOST_LOG_TRIVIAL</span></h2>
<p>BOOST_LOG_TRIVIAL</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="log/reference.html#header.boost.log.trivial_hpp" title="Header &lt;boost/log/trivial.hpp&gt;">boost/log/trivial.hpp</a>&gt;

</span>BOOST_LOG_TRIVIAL(lvl)</pre></div>
<div class="refsect1">
<a name="idm46846481016448"></a><h2>Description</h2>
<p>The macro is used to initiate logging. The <code class="computeroutput">lvl</code> argument of the macro specifies one of the following severity levels: <code class="computeroutput">trace</code>, <code class="computeroutput">debug</code>, <code class="computeroutput">info</code>, <code class="computeroutput">warning</code>, <code class="computeroutput">error</code> or <code class="computeroutput">fatal</code> (see <code class="computeroutput">severity_level</code> enum). Following the macro, there may be a streaming expression that composes the record message string. For example:</p>
<pre class="programlisting"><span class="identifier">BOOST_LOG_TRIVIAL</span><span class="special">(</span><span class="identifier">info</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="string">"Hello, world!"</span><span class="special">;</span>
</pre>
<p> </p>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2007-2021 Andrey Semashev<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="boost/log/trivial/operator_idm45961923598352.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="log/reference.html#header.boost.log.trivial_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="core_components.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
